<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: flex;
        }
        .left {
            width: 200px;
            height: 200px;
            background-color: pink;
        }
        .right {
            /* 
                flex-grow: 1;
                flex-basis: 30px;

                flex-shrink也是1
            */
            /* flex: 1 30px; */

            /* 
                flex-grow: 2;
                flex-shrink: 2;

                flex-basis: 0%;
            */
            width: 200px;
            flex: 2 2;
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>
</html>